Class: Ayadn::PostSourceObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/post_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#inputObject (readonly)

Returns the value of attribute input.



6
7
8
# File 'lib/ayadn/post_object.rb', line 6

def input
  @input
end

Returns the value of attribute link.



6
7
8
# File 'lib/ayadn/post_object.rb', line 6

def link
  @link
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/ayadn/post_object.rb', line 6

def name
  @name
end