class ReplTalk::Organization

Attributes

city[R]
country[R]
id[R]
name[R]
postal_code[R]
state[R]
timestamp[R]

Public Class Methods

new(organization) click to toggle source
# File lib/repltalk/structures.rb, line 24
def initialize(organization)
        @id = organization["id"]
        @name = organization["name"]
        @country = organization["country"]
        @postal_code = organization["postalCode"]
        @state = organization["state"]
        @city = organization["city"]
        @timestamp = organization["timeCreated"]
end

Public Instance Methods

to_s() click to toggle source
# File lib/repltalk/structures.rb, line 34
def to_s
        @name
end