Class: Files::BundlePublic
- Inherits:
-
Object
- Object
- Files::BundlePublic
- Defined in:
- lib/files.com/models/bundle_public.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#code ⇒ Object
string - Bundle code.
-
#description ⇒ Object
string - Bundle description.
-
#initialize(attributes = {}, options = {}) ⇒ BundlePublic
constructor
A new instance of BundlePublic.
-
#url ⇒ Object
string - Bundle url.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ BundlePublic
Returns a new instance of BundlePublic.
7 8 9 10 |
# File 'lib/files.com/models/bundle_public.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/bundle_public.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/bundle_public.rb', line 5 def @options end |
Instance Method Details
#code ⇒ Object
string - Bundle code
13 14 15 |
# File 'lib/files.com/models/bundle_public.rb', line 13 def code @attributes[:code] end |
#description ⇒ Object
string - Bundle description
23 24 25 |
# File 'lib/files.com/models/bundle_public.rb', line 23 def description @attributes[:description] end |
#url ⇒ Object
string - Bundle url
18 19 20 |
# File 'lib/files.com/models/bundle_public.rb', line 18 def url @attributes[:url] end |