Class: Ayadn::PostSourceObject
Instance Attribute Summary collapse
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PostSourceObject
constructor
A new instance of PostSourceObject.
Constructor Details
#initialize(hash) ⇒ PostSourceObject
Returns a new instance of PostSourceObject.
8 9 10 11 12 13 |
# File 'lib/ayadn/post_object.rb', line 8 def initialize hash @input = hash["source"] @link = @input["link"] @name = @input["name"] @client_id = @input["client_id"] end |
Instance Attribute Details
#client_id ⇒ Object (readonly)
Returns the value of attribute client_id.
6 7 8 |
# File 'lib/ayadn/post_object.rb', line 6 def client_id @client_id end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
6 7 8 |
# File 'lib/ayadn/post_object.rb', line 6 def input @input end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
6 7 8 |
# File 'lib/ayadn/post_object.rb', line 6 def link @link end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/ayadn/post_object.rb', line 6 def name @name end |