Class: Rafflesia::AnnotationMapRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AnnotationMapRequest
- Defined in:
- lib/rafflesia/annotations/annotation_map_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ allow_network: :allow_network, from_id: :from_id, sources: :sources, to_ref: :to_ref }.freeze
Instance Attribute Summary collapse
-
#allow_network ⇒ Object
Returns the value of attribute allow_network.
-
#from_id ⇒ Object
Returns the value of attribute from_id.
-
#sources ⇒ Object
Returns the value of attribute sources.
-
#to_ref ⇒ Object
Returns the value of attribute to_ref.
Instance Method Summary collapse
-
#initialize(json) ⇒ AnnotationMapRequest
constructor
A new instance of AnnotationMapRequest.
Constructor Details
#initialize(json) ⇒ AnnotationMapRequest
Returns a new instance of AnnotationMapRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/annotations/annotation_map_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @allow_network = hash[:allow_network] @from_id = hash[:from_id] @sources = (hash[:sources] || []) @to_ref = hash[:to_ref] end |
Instance Attribute Details
#allow_network ⇒ Object
Returns the value of attribute allow_network.
15 16 17 |
# File 'lib/rafflesia/annotations/annotation_map_request.rb', line 15 def allow_network @allow_network end |
#from_id ⇒ Object
Returns the value of attribute from_id.
15 16 17 |
# File 'lib/rafflesia/annotations/annotation_map_request.rb', line 15 def from_id @from_id end |
#sources ⇒ Object
Returns the value of attribute sources.
15 16 17 |
# File 'lib/rafflesia/annotations/annotation_map_request.rb', line 15 def sources @sources end |
#to_ref ⇒ Object
Returns the value of attribute to_ref.
15 16 17 |
# File 'lib/rafflesia/annotations/annotation_map_request.rb', line 15 def to_ref @to_ref end |