Class: Openname::Org
- Inherits:
-
Object
- Object
- Openname::Org
- Defined in:
- lib/openname.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#relationship ⇒ Object
readonly
Returns the value of attribute relationship.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json) ⇒ Org
constructor
A new instance of Org.
Constructor Details
#initialize(json) ⇒ Org
Returns a new instance of Org.
149 150 151 152 153 |
# File 'lib/openname.rb', line 149 def initialize(json) @url = json["url"] if json["url"] @relationship = json["relationship"] if json["relationship"] @name = json["name"] if json["name"] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
146 147 148 |
# File 'lib/openname.rb', line 146 def name @name end |
#relationship ⇒ Object (readonly)
Returns the value of attribute relationship.
145 146 147 |
# File 'lib/openname.rb', line 145 def relationship @relationship end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
144 145 146 |
# File 'lib/openname.rb', line 144 def url @url end |