-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
219 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
# Location of the person | ||
class Location | ||
attr_accessor :lat, :long | ||
attr_accessor :lat, :long | ||
|
||
def initialize(lat, long) | ||
@lat = lat | ||
@long = long | ||
end | ||
def initialize(lat, long) | ||
@lat = lat | ||
@long = long | ||
end | ||
end | ||
|
||
# An application | ||
class Web | ||
attr_accessor :name, :url | ||
attr_accessor :name, :url | ||
|
||
def initialize(name, url) | ||
@name = name | ||
@url = url | ||
end | ||
def initialize(name, url) | ||
@name = name | ||
@url = url | ||
end | ||
end | ||
|
||
# An simple author element with some description | ||
class Author | ||
attr_accessor :title, :email, :categories, :locations, :origin | ||
attr_accessor :title, :email, :categories, :locations, :origin | ||
|
||
def initialize(title, email, categories, locations, origin) | ||
@title = title | ||
@email = email | ||
@categories = categories | ||
@locations = locations | ||
@origin = origin | ||
end | ||
def initialize(title, email, categories, locations, origin) | ||
@title = title | ||
@email = email | ||
@categories = categories | ||
@locations = locations | ||
@origin = origin | ||
end | ||
end | ||
|
||
# An general news entry | ||
class News | ||
attr_accessor :config, :inline_config, :map_tags, :map_receiver, :map_resources, :tags, :receiver, :resources, :profile_image, :read, :source, :author, :meta, :send_date, :read_date, :expires, :range, :price, :rating, :content, :question, :version, :coffee_time, :profile_uri, :captcha, :payload | ||
attr_accessor :config, :inline_config, :map_tags, :map_receiver, :map_resources, :tags, :receiver, :resources, :profile_image, :read, :source, :author, :meta, :send_date, :read_date, :expires, :range, :price, :rating, :content, :question, :version, :coffee_time, :profile_uri, :captcha, :payload | ||
|
||
def initialize(config, inline_config, map_tags, map_receiver, map_resources, tags, receiver, resources, profile_image, read, source, author, meta, send_date, read_date, expires, range, price, rating, content, question, version, coffee_time, profile_uri, captcha, payload) | ||
@config = config | ||
@inline_config = inline_config | ||
@map_tags = map_tags | ||
@map_receiver = map_receiver | ||
@map_resources = map_resources | ||
@tags = tags | ||
@receiver = receiver | ||
@resources = resources | ||
@profile_image = profile_image | ||
@read = read | ||
@source = source | ||
@author = author | ||
@meta = meta | ||
@send_date = send_date | ||
@read_date = read_date | ||
@expires = expires | ||
@range = range | ||
@price = price | ||
@rating = rating | ||
@content = content | ||
@question = question | ||
@version = version | ||
@coffee_time = coffee_time | ||
@profile_uri = profile_uri | ||
@captcha = captcha | ||
@payload = payload | ||
end | ||
def initialize(config, inline_config, map_tags, map_receiver, map_resources, tags, receiver, resources, profile_image, read, source, author, meta, send_date, read_date, expires, range, price, rating, content, question, version, coffee_time, profile_uri, captcha, payload) | ||
@config = config | ||
@inline_config = inline_config | ||
@map_tags = map_tags | ||
@map_receiver = map_receiver | ||
@map_resources = map_resources | ||
@tags = tags | ||
@receiver = receiver | ||
@resources = resources | ||
@profile_image = profile_image | ||
@read = read | ||
@source = source | ||
@author = author | ||
@meta = meta | ||
@send_date = send_date | ||
@read_date = read_date | ||
@expires = expires | ||
@range = range | ||
@price = price | ||
@rating = rating | ||
@content = content | ||
@question = question | ||
@version = version | ||
@coffee_time = coffee_time | ||
@profile_uri = profile_uri | ||
@captcha = captcha | ||
@payload = payload | ||
end | ||
end |
Oops, something went wrong.