Class: Trello::AssociationFetcher::HasOne
- Inherits:
-
Object
- Object
- Trello::AssociationFetcher::HasOne
- Defined in:
- lib/trello/association_fetcher/has_one.rb,
lib/trello/association_fetcher/has_one/fetch.rb,
lib/trello/association_fetcher/has_one/params.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(model, name, options) ⇒ HasOne
constructor
A new instance of HasOne.
Constructor Details
#initialize(model, name, options) ⇒ HasOne
Returns a new instance of HasOne.
9 10 11 12 13 |
# File 'lib/trello/association_fetcher/has_one.rb', line 9 def initialize(model, name, ) @model = model @name = name @options = end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
7 8 9 |
# File 'lib/trello/association_fetcher/has_one.rb', line 7 def model @model end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/trello/association_fetcher/has_one.rb', line 7 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/trello/association_fetcher/has_one.rb', line 7 def @options end |