Class: Ayadn::PostLinkObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ PostLinkObject

Returns a new instance of PostLinkObject.



20
21
22
23
24
25
26
27
# File 'lib/ayadn/post_object.rb', line 20

def initialize hash
  @input = hash
  @url = @input["url"]
  @text = @input["text"]
  @pos = @input["pos"]
  @len = @input["len"]
  @amended_len = @input["amended_len"]
end

Instance Attribute Details

#amended_lenObject (readonly)

Returns the value of attribute amended_len.



18
19
20
# File 'lib/ayadn/post_object.rb', line 18

def amended_len
  @amended_len
end

#inputObject (readonly)

Returns the value of attribute input.



18
19
20
# File 'lib/ayadn/post_object.rb', line 18

def input
  @input
end

#lenObject (readonly)

Returns the value of attribute len.



18
19
20
# File 'lib/ayadn/post_object.rb', line 18

def len
  @len
end

#posObject (readonly)

Returns the value of attribute pos.



18
19
20
# File 'lib/ayadn/post_object.rb', line 18

def pos
  @pos
end

#textObject (readonly)

Returns the value of attribute text.



18
19
20
# File 'lib/ayadn/post_object.rb', line 18

def text
  @text
end

#urlObject (readonly)

Returns the value of attribute url.



18
19
20
# File 'lib/ayadn/post_object.rb', line 18

def url
  @url
end