Class: Epages::Link
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#rel ⇒ Object
readonly
Returns the value of attribute rel.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(data) ⇒ Link
constructor
A new instance of Link.
Methods included from Utils
build_shop_from, camelize_keys, camelize_words, options_to_multipart_request, options_to_patch_request, parse_attribute_as, parse_attribute_as_array_of, parse_attributes, symbolize_keys!, to_query_options, underscorize_keys
Constructor Details
#initialize(data) ⇒ Link
Returns a new instance of Link.
9 10 11 |
# File 'lib/epages/link.rb', line 9 def initialize(data) parse_attributes(data) end |
Instance Attribute Details
#href ⇒ Object (readonly)
Returns the value of attribute href.
7 8 9 |
# File 'lib/epages/link.rb', line 7 def href @href end |
#rel ⇒ Object (readonly)
Returns the value of attribute rel.
7 8 9 |
# File 'lib/epages/link.rb', line 7 def rel @rel end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/epages/link.rb', line 7 def title @title end |